{% extends "base.html" %}

{% block title %}创建新动画{% endblock %}

{% block content %}

    <form method="post" action="{% url 'update_anime' %}">  
        <input type="text" name="theme" placeholder="请输入系列名称" value="{{ request.POST.theme }}">  
        <button type="submit">查询</button>  
    </form> 
    {% if results %}  
    <table>
        <tr class="detail_head">
            <th>系列</th>
            <th>季数</th>
            <th>副标题</th>
            <th>集数</th>
            <th>开播日期</th>
            <th>制作公司</th>
        </tr>
        {% for result in results %}
        <tr class="detail_text">
            <td class="num">{{ result.theme }}</td>
            <td class="num">{{ result.season }}</td>
            <td class="num">{{ result.subtitle }}</td>
            <td class="num">{{ result.episodes }}</td>
            <td class="date">{{ result.date_start }}</td>
            <td class="num"><input type="text" name="producer" placeholder="{{ result.producer }}"></td>
        </tr>
        {% endfor %}
    </table>
    {% else %}  
    <p>未找到相关结果！</p>  
    {% endif %} 

{% endblock %}